import request from "@/utils/yzy/request";
import { agencyType } from "@/types/yzy/agency";
import { SignResidentType } from "@/types/yzy/agency";
const Agency = {
  getAgencyApi: (data: agencyType) =>
    request.post("/api/getSRTSBySTOSDPage", data), //获取所有签约信息
  getAgencyInfo: (data: any) => request.post("/api/getSignById", data), //根据id查询信息
  getAllChcsOrganApi: () => request.post("/api/getAllChcsOrgan"), //获取所有机构
  getTeamByOrganId: (organId: string | null) =>
    request.post("/api/getTeamByOrganId", { organId }), //获取团队
  getServiceBasicApi: (teamId: string | null) =>
    request.post("/api/getServiceBasicByTeamId", { teamId }), //获取服务包
  updateStatus: (data: any) => request.post("/api/updateSignStatusById", data), //更新签约状态
  updateSignResidentApi: (data: SignResidentType) =>
    request.post("/api/updateSignResidentBySid", data), //更改信息
  getLabelBySearchApi: () => request.post("/api/getLabelBySearchPage"), //病标签信息
  getBasicDoctor: (teamId: string) =>
    request.post("/api/getBasicDoctorByTeamId", { teamId }), //根据团队id查找医生简单信息
  getAllChcsMaritalstatus: () => request.post("/api/getAllChcsMaritalstatus"), //取得所有婚姻状态
  getResidentLabelHealth: (residentId: string) =>
    request.post("/api/getResidentLabelHealthById", { residentId }), //根据id查询居民信息
};
export default Agency;
